#include <Square.h>

Square::Square (float side) :
   m_rectangle (side, side)
{
}

bool Square::setSide (float side)
{
   return (m_rectangle.setWidth(side) && m_rectangle.setHeight(side));
}

float Square::getArea () const
{
   return m_rectangle.getArea ();
}

float Square::getPerimeter () const
{
   return m_rectangle.getPerimeter ();
}

